import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import echarts from 'echarts'
import { vintage, westeros, wonderland, chalk, macarons, shine, dark, essos, walden, infographic, roma, purplePassion } from '@/components/theme/index'

// echarts主题配置
echarts.registerTheme('vintage', vintage)
echarts.registerTheme('westeros', westeros)
echarts.registerTheme('wonderland', wonderland)
echarts.registerTheme('chalk', chalk)
echarts.registerTheme('macarons', macarons)
echarts.registerTheme('shine', shine)
echarts.registerTheme('dark', dark)
echarts.registerTheme('essos', essos)
echarts.registerTheme('walden', walden)
echarts.registerTheme('infographic', infographic)
echarts.registerTheme('roma', roma)
echarts.registerTheme('purplePassion', purplePassion)
Vue.prototype.$echarts = echarts

Vue.config.productionTip = false

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
